<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="common :: header('发布票据')"/>
</head>
<body class="hold-transition layout-top-nav">
<div class="wrapper">

    <!-- Navbar -->
    <th:block th:include="common :: navbar"/>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <div class="content-header">
            <div class="container">
                <div class="row mb-2">
                    <div class="col-sm-6">
                        <h1 class="m-0 text-dark">发布票据</h1>
                    </div><!-- /.col -->
                    <div class="col-sm-6">
                        <ol class="breadcrumb float-sm-right">
                            <li class="breadcrumb-item"><a th:href="${#httpServletRequest.getContextPath()}">首页</a></li>
                            <li class="breadcrumb-item active">发布票据</li>
                        </ol>
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.container-fluid -->
        </div>
        <!-- /.content-header -->


        <!-- Main content -->
        <div class="content">
            <div class="container">
                <div class="row">
                    <div class="col-lg-6 col-12">
                        <div class="card card-primary">
                            <!-- /.card-header -->
                            <!-- form start -->
                            <form id="send-form" role="form" action="">
                                <div class="card-body">
                                    <div class="form-group">
                                        <label>发布者</label>
                                        <div class="form-group clearfix">
                                            <div class="icheck-primary d-inline">
                                                <input type="radio" id="issuer" name="issuer" value="issuer" checked>
                                                <label for="issuer">issuer1</label>
                                            </div>
                                            <div class="icheck-primary d-inline" style="margin-left:19px;">
                                                <input type="radio" id="issuer2" name="issuer" value="issuer2" >
                                                <label for="issuer2">issuer2</label>
                                            </div>
                                            <div class="icheck-primary d-inline" style="margin-left:19px;">
                                                <input type="radio" id="issuer3" name="issuer" value="issuer3" >
                                                <label for="issuer3">issuer3</label>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="paperNumber">票据号</label>
                                        <input id="paperNumber" name="paperNumber" class="form-control" value="001">
                                    </div>
                                    <div class="form-group">
                                        <label for="faceValue">票面金额</label>
                                        <input id="faceValue" name="faceValue" class="form-control" value="1000">
                                    </div>
                                    <div class="form-group">
                                        <label>周期</label>
                                        <div class="form-group clearfix">
                                            <div class="icheck-primary d-inline">
                                                <input type="radio" id="maturity10" name="maturity" value="10" checked>
                                                <label for="maturity10">10天</label>
                                            </div>
                                            <div class="icheck-primary d-inline">
                                                <input type="radio" id="maturity20" name="maturity" value="20">
                                                <label for="maturity20">20天</label>
                                            </div>
                                            <div class="icheck-primary d-inline" style="margin-left:19px;">
                                                <input type="radio" id="maturity30" name="maturity" value="30" >
                                                <label for="maturity30">30天</label>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!-- /.card-body -->

                                <div class="card-footer">
                                    <button type="button" class="btn btn-primary" onclick="send()">发布</button>
                                </div>
                            </form>
                        </div>
                    </div><!-- ./col -->
                </div><!-- ./row -->
            </div><!-- /.container-fluid -->
        </div>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->

    <!-- Main Footer -->
    <th:block th:include="common :: footer"/>
</div>
<!-- ./wrapper -->

<!-- REQUIRED SCRIPTS -->
<th:block th:include="common :: commonJs"/>
<script th:inline="javascript">
    function send(){
        $.operate.post(ctx+"/issue/send",$("#send-form").serializeArray());
    }
</script>
</body>
</html>
